{template 'public/header'}

{template 'public/comhead'}

<link rel="stylesheet" type="text/css" href="../addons/zh_jr/template/public/ygcss.css">

<style type="text/css">

  /*#frame-5{display: block;visibility: visible;}*/

  .yg_inp>input{margin-bottom: 10px;}

  .storeimg{

  	max-width: 300px;

  	max-height: 300px;

  }

  .bigzheng,.bigfan{min-width: 500px;min-height: 500px;max-width: 600px;max-height: 600px;}

  .xuanbtn1,.xuanbtn2,.xuanbtn3,.xuanbtn4{

    position: absolute;

    bottom: 10px;

    right: 5%;



  }

</style>

<ul class="nav nav-tabs">    

  <span class="ygxian"></span>

  <div class="ygdangq">当前位置:</div>

  <li><a href="{php echo $this->createWebUrl('attestation')}">认证管理</a></li>

  <li class="active"><a href="javascript:void(0);">认证详情</a></li>

</ul>

<div class="main">

  <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" id="invitative">

    <div class="panel panel-default ygdefault">

      <div class="panel-heading wyheader">

        认证管理&nbsp;>&nbsp;认证详情

      </div>

      <div class="panel-body">
        <div class="form-group">

          <label class="col-xs-12 col-sm-3 col-md-2 control-label">真实姓名/企业全称</label>

          <div class="col-sm-9">

            <input type="text" name="name" value="{$item['name']}" id="web_name" class="form-control" />

          </div>

        </div>
        <div class="form-group">

          <label class="col-xs-12 col-sm-3 col-md-2 control-label">证件名称/企业</label>

          <div class="col-sm-9">

            <input type="text" name="zj_name" value="{$item['zj_name']}" id="web_name" class="form-control" />

          </div>

        </div>

        <div class="form-group">

          <label class="col-xs-12 col-sm-3 col-md-2 control-label">身份证号/工商注册码</label>

          <div class="col-sm-9">

            <input type="text" name="code" value="{$item['code']}" id="web_name" class="form-control" />

          </div>

        </div>

        <div class="form-group">

          <label class="col-md-2 control-label">身份证正面照</label>

          <div class="col-sm-3">

      		<img class="storeimg attzheng" id="usertu1{$row['id']}" src="{media $item['zm_img']}" data-toggle="modal" data-target="#myModalu{$row['id']}">

          <!-- —————————放大图片——————————— -->

          	<div class="modal fade" id="myModalu{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">

                <div class="modal-dialog" role="document">

                    <div class="modal-content">

                        <div class="modal-header">

                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>

                            <h3 class="modal-title" id="myModalLabel">身份证正面照</h3>

                        </div>

                        <div class="modal-body" style="padding: 5px 30px 15px;text-align: center;">

                            <img class="bigzheng zhuan1" src="{media $item['zm_img']}">

                            <div class="btn btn-sm storeblue xuanbtn1">

                                <span class="fa fa-share"></span>点击旋转

                              </div>

                        </div>

                        

                        <div class="modal-footer">

                            <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>



                        </div>

                    </div>

                </div>

            </div>

            <!-- —————————放大图片——————————— -->

            

          </div>

          <div class="col-md-2" style="text-align: right;">身份证反面照</div>

          	<div class="col-sm-3">

	            <img class="storeimg attfan" id="usertu2{$row['id']}" src="{media $item['bm_img']}" data-toggle="modal" data-target="#myModalu2{$row['id']}">

	          	<div class="modal fade" id="myModalu2{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">

	                <div class="modal-dialog" role="document">

	                    <div class="modal-content">

	                        <div class="modal-header">

	                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>

	                            <h3 class="modal-title" id="myModalLabel">身份证反面照</h3>

	                        </div>

	                        <div class="modal-body" style="padding: 5px 30px 15px;text-align: center;">

	                            <img class="bigfan zhuan2" src="{media $item['bm_img']}">

                              <div class="btn btn-sm storeblue xuanbtn2">

                                <span class="fa fa-share"></span>点击旋转

                              </div>

	                        </div>

	                        

	                        <div class="modal-footer">

	                            <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>

	                        </div>

	                    </div>

	                </div>

	            </div>

          	</div>

        </div>

        <!-- <div class="form-group">

          <label class="col-xs-12 col-sm-3 col-md-2 control-label">身份证反面照</label>

          <div class="col-sm-9">

            <img class="storeimg attfan" id="usertu2{$row['id']}" src="{media $item['bm_img']}" data-toggle="modal" data-target="#myModalu2{$row['id']}">

          <div class="modal fade" id="myModalu2{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">

                <div class="modal-dialog" role="document">

                    <div class="modal-content">

                        <div class="modal-header">

                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>

                            <h3 class="modal-title" id="myModalLabel">身份证反面照</h3>

                        </div>

                        <div class="modal-body" style="padding: 5px 30px 15px;text-align: center;">

                            <img class="bigfan" src="{media $item['bm_img']}">

                        </div>

                        

                        <div class="modal-footer">

                            <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>

                        </div>

                    </div>

                </div>

            </div>

          </div>

        </div> -->

      
        <!-- <div class="form-group">
        
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">银行卡正面照</label>
        
            <div class="col-sm-3">
        
                      <img class="storeimg" id="usertu3{$row['id']}" src="{media $item['yhzm_img']}" data-toggle="modal" data-target="#card1{$row['id']}">
        
                      —————————放大银行卡———————————
        
                      <div class="modal fade" id="card1{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        
                          <div class="modal-dialog" role="document">
        
                              <div class="modal-content">
        
                                  <div class="modal-header">
        
                                      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        
                                      <h3 class="modal-title" id="myModalLabel">银行卡正面照</h3>
        
                                  </div>
        
                                  <div class="modal-body" style="padding: 5px 30px 15px;text-align: center;">
        
                                      <img class="bigfan zhuan3" src="{media $item['yhzm_img']}">
        
                              <div class="btn btn-sm storeblue xuanbtn3">
        
                                <span class="fa fa-share"></span>点击旋转
        
                              </div>
        
                                  </div>
        
                                  
        
                                  <div class="modal-footer">
        
                                      <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>
        
                                  </div>
        
                              </div>
        
                          </div>
        
                      </div>
        
              —————————放大银行卡———————————
        
            </div>
        
            <div class="col-md-2" style="text-align: right;">银行卡反面照</div>
        
            <div class="col-sm-3">
        
                <img class="storeimg" id="usertu4{$row['id']}" src="{media $item['yhfm_img']}" data-toggle="modal" data-target="#card2{$row['id']}">
        
                —————————放大银行卡———————————
        
                <div class="modal fade" id="card2{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        
                    <div class="modal-dialog" role="document">
        
                        <div class="modal-content">
        
                            <div class="modal-header">
        
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        
                                <h3 class="modal-title" id="myModalLabel">银行卡反面照</h3>
        
                            </div>
        
                            <div class="modal-body" style="padding: 5px 30px 15px;text-align: center;">
        
                                <img class="bigfan zhuan4" src="{media $item['yhfm_img']}">
        
                                <div class="btn btn-sm storeblue xuanbtn4">
        
                                  <span class="fa fa-share"></span>点击旋转
        
                                </div>
        
                            </div>
        
                            
        
                            <div class="modal-footer">
        
                                <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>
        
                            </div>
        
                        </div>
        
                    </div>
        
                </div>
        
                —————————放大银行卡———————————
        
            </div>
        
        </div> -->

        <!-- <div class="form-group">

            <label class="col-xs-12 col-sm-3 col-md-2 control-label">银行卡反面照</label>

            <div class="col-sm-9">

                <img class="storeimg" id="usertu4{$row['id']}" src="{media $item['yhfm_img']}" data-toggle="modal" data-target="#card2{$row['id']}">

                <div class="modal fade" id="card2{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">

                    <div class="modal-dialog" role="document">

                        <div class="modal-content">

                            <div class="modal-header">

                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>

                                <h3 class="modal-title" id="myModalLabel">银行卡反面照</h3>

                            </div>

                            <div class="modal-body" style="padding: 5px 30px 15px;text-align: center;">

                                <img class="bigfan" src="{media $item['yhfm_img']}">

                            </div>

                            

                            <div class="modal-footer">

                                <button type="button" class="btn btn-default" data-dismiss="modal">确定</button>

                            </div>

                        </div>

                    </div>

                </div>

            </div>

        </div> -->





        {if $item['state']==1}



        <div class="form-group">



         <label class="col-xs-12 col-sm-3 col-md-2 control-label">申请时间</label>



         <div class="col-sm-9 yg_inp">



          <input type="text"   value="{php echo date('Y-m-d H:i',$item['time'])}" class="form-control" id="inputEmail3" readonly>



        </div>



      </div>



      {/if} 



      {if $item['state']==2}



      <div class="form-group">



       <label class="col-xs-12 col-sm-3 col-md-2 control-label">审核时间</label>



       <div class="col-sm-9 yg_inp">



        <input type="text"   value="{php echo date('Y-m-d H:i',$item['sh_time'])}" class="form-control" id="inputEmail3" readonly>



      </div>



    </div>



    {/if} 











    <div class="form-group">

      <label class="col-xs-12 col-sm-3 col-md-2 control-label">状态</label>

      <div class="col-sm-9">

        <select name="state" class="col-md-4">

          {if $item['state']==1}

          <option value="1" selected>待审核</option>

          <option value="2" >已通过</option>

          <option value="3" >已拒绝</option>

          {elseif $item['state']==2}

          <option value="1" >待审核</option>

          <option value="2" selected>已通过</option>

          <option value="3" >已拒绝</option>

          {elseif $item['state']==3}

          <option value="1" >待审核</option>

          <option value="2">已通过</option>

          <option value="3"  selected>已拒绝</option>

          {else}

          <option value="1" >待审核</option>

          <option value="2">已通过</option>

          <option value="3">已拒绝</option>

          {/if}

        </select>

      </div>

    </div>



<!-- <div class="form-group">

    <label class="col-xs-12 col-sm-3 col-md-2 control-label">备注</label>

     <div class="col-sm-9 yg_inp">

      <input type="text" value="{$item['note']}" class="form-control" id="inputEmail3" readonly>

    </div>

  </div> -->





</div>

</div>





<div class="form-group">

  <a class="btn col-sm-2" style="color: white;background-color: #44ABF7;" href="{php echo $this->createWebUrl('attestation');}">返回列表</a>

  <div class="col-sm-1"></div>

    {if $item['state']==1}

  <a class="btn col-sm-2" style="color: white;background-color: #44ABF7;" href="{php echo $this->createWebUrl('attestation',array('id'=>$item['id'],'op'=>'adopt'));}">通过</a>

  <div class="col-sm-1"></div>

  <a class="btn col-sm-2" style="color: white;background-color: #44ABF7;" href="{php echo $this->createWebUrl('attestation', array('id' => $item['id'],'op'=>'reject'));}">拒绝</a>

   {/if}

   <input class="btn col-lg-3 col-lg-push-1" style="color: white;background-color: #44ABF7;" type="submit" name="submit" value="修改" /> 

  <input type="hidden" name="token" value="{$_W['token']}" />

  <input type="hidden" name="id" value="{$item['id']}" />



</div>

</form>

</div>

<!-- {template 'common/footer'} -->

<script type="text/javascript">

  $(function(){

    $("#frame-10").show();

    $("#yframe-10").addClass("wyactive");



    var zhuan1=0;

    $(".xuanbtn1").click(function(){

      zhuan1 = zhuan1+90;

      $(".zhuan1").css({"transform":"rotate("+zhuan1+"deg)"});

    })



    var zhuan2=0;

    $(".xuanbtn2").click(function(){

      zhuan2 = zhuan2+90;

      $(".zhuan2").css({"transform":"rotate("+zhuan2+"deg)"});

    })



    var zhuan3=0;

    $(".xuanbtn3").click(function(){

      zhuan3 = zhuan3+90;

      $(".zhuan3").css({"transform":"rotate("+zhuan3+"deg)"});

    })



    var zhuan4=0;

    $(".xuanbtn4").click(function(){

      zhuan4 = zhuan4+90;

      $(".zhuan4").css({"transform":"rotate("+zhuan4+"deg)"});

    })

  })

</script>